﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System;

namespace Mvc2.Models
{
	[MetadataType(typeof(DataRecord.Metadata))]
	partial class DataRecord
	{
		public class Metadata
		{
			[DisplayName("Id")]
			public int Id
			{
				get;
				set;
			}

			[DisplayName("Field 1")]
			public string Field1
			{
				get;
				set;
			}

			[DisplayName("Field 2")]
			public string Field2
			{
				get;
				set;
			}

			[DisplayName("Field 3")]
			public string Field3
			{
				get;
				set;
			}
		}
	}

	public partial class DataRecord
	{
		#region public int Id

		private int m_Id;

		public int Id
		{
			get { return m_Id; }
			set { m_Id = value; }
		}

		#endregion

		#region public string Field1

		private string m_Field1;

		public string Field1
		{
			get { return m_Field1; }
			set { m_Field1 = value; }
		}
		
		#endregion

		#region public string Field2

		private string m_Field2;

		public string Field2
		{
			get { return m_Field2; }
			set { m_Field2 = value; }
		}

		#endregion

		#region public string Field3

		private string m_Field3;

		public string Field3
		{
			get { return m_Field3; }
			set { m_Field3 = value; }
		}

		#endregion
	}
}
